function checkDepart(){
    var departName = document.getElementById("department").value;
    if(departName.replace(/\s+/g, '') == ""){
        alert("部门名称不能为空！");
        return false;
    }
}